package cn.itcast.controller;

import cn.itcast.domain.Yuancailiao;
import cn.itcast.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/yuancailiao")
public class YuancailiaoController {

    @Resource
    private UserService service;
    @RequestMapping("/findYuanciaoliao.do")
    @ResponseBody
    public List<Yuancailiao> findYuanciaoliao(){
        List<Yuancailiao> list=service.findyuancailiao();
        return list;
    }
}
